package top.cwk.eureka.FeignConsumer.service;

import org.springframework.stereotype.Component;

/**
 * 当服务出错时 触发熔断机制，则方法回被调用
 */
@Component
public class ErrorHelloServiceImpl implements HelloService {

    @Override
    public String getHello(String name) {
        return "Sorry "+name+", I am error!";
    }
}
